import {
	createApp
} from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import Vant from 'vant'
import 'vant/lib/index.css';
import { Lazyload } from 'vant';

import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import router from './router'
import axios from 'axios'
import cookies from 'js-cookie'
import '@/assets/font/font.css';


const app = createApp(App);
app.use(Vant);
app.use(Lazyload);
app.use(ElementPlus);
app.use(router);
app.mount('#app');
app.config.globalProperties.$axios = axios;
app.config.globalProperties.$cookies = cookies;
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
	app.component(key, component)
}